const mongoose=require('mongoose')
mongoose.connect('mongodb+srv://775788311:gao123...@project.ux1c1.mongodb.net/')
const conn=mongoose.connection
conn.on('open',()=>{
    console.log('数据库连接成功')
})
conn.on('error',(err)=>{
    console.log('数据库连接失败',err)
})

module.exports=mongoose